/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Random;

/**
 * <p>Project: jse2302 - Exce1
 * <p>Powered by webrx On 2023-06-21 16:20:47
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exce1 {
    public static void main(String[] args) {
        int c = 100;
        Random rand = new Random();
        int a = rand.nextInt(15);
        int b = rand.nextInt(1);
        System.out.println(a);
        System.out.println(b);

        try {
            int i = a / b;
            System.out.printf("%d / %d = %d%n", a, b, i);
        } catch (Exception e) {
            System.out.println("除数不能0");
        }

        System.out.println("ok");

    }
}
